import { RouteRecordRaw } from 'vue-router'

export default [
  {
    path: 'CESelect',
    name: 'CESelect',
    meta: {
      title: '下拉组件',
      sort: 1
    },
    component: () => import('@/views/component/CESelect/CESelect.vue')
  },
  {
    path: 'CEForm',
    name: 'CEForm',
    meta: {
      title: '表单组件',
      sort: 3
    },
    component: () => import('@/views/component/CEForm/CEForm.vue')
  },
  {
    path: 'treeselect',
    name: 'TreeSelect',
    meta: {
      title: '树形组件',
      sort: 2
    },
    component: () => import('@/views/component/treeselect/treeselet.vue')
  },
  {
    path: 'testTable',
    name: 'TestTable',
    meta: {
      title: '表格组件',
      sort: 5
    },
    component: () => import('@/views/component/testTable/testTable.vue')
  },
  {
    path: 'chart',
    name: 'ChartPage',
    meta: {
      title: 'chart组件',
      sort: 4
    },
    component: () => import('@/views/component/chart/chart.vue')
  },
  {
    path: 'VMdEditor',
    name: 'VMdEditor',
    meta: {
      title: '富文本编辑器',
      sort: 6
    },
    component: () => import('@/views/component/VMdEditor/VMdEditor.vue')
  },
  {
    path: 'print',
    name: 'Print',
    meta: {
      title: '打印',
      sort: 7
    },
    component: () => import('@/views/component/print/print.vue')
  },
  {
    path: 'qcode',
    name: 'Qcode',
    meta: {
      title: '二维码',
      sort: 8
    },
    component: () => import('@/views/component/qcode/qcode.vue')
  },
  {
    path: 'watermark',
    name: 'Watermark',
    meta: {
      title: '水印',
      sort: 9
    },
    component: () => import('@/views/component/watermark/watermark.vue')
  },
  {
    path: 'imgCutter',
    name: 'ImgCutter',
    meta: {
      title: '裁剪工具',
      sort: 10
    },
    component: () => import('@/views/component/img-cutter/imgCutter.vue')
  },
  {
    path: 'pagination',
    name: 'Pagination',
    meta: {
      title: '分页组件',
      sort: 11,
      keepAlive: true
    },
    component: () => import('@/views/component/pagination/pagination.vue')
  },
  {
    path: 'swiper',
    name: 'SwiperTest',
    meta: {
      title: '轮播图',
      sort: 12
    },
    component: () => import('@/views/component/swiper/swiper.vue')
  },
  {
    path: 'progress',
    name: 'Progress',
    meta: {
      title: '进度条',
      sort: 13,
      keepAlive: true
    },
    component: () => import('@/views/component/progress/progress.vue')
  },
  // {
  //   path: 'drag',
  //   name: 'Drag',
  //   meta: {
  //     title: '拖拽事件',
  //     sort: 14
  //   },
  //   component: () => import('@/views/component/drag/drag.vue')
  // },
  {
    path: 'mapTest',
    name: 'MapTest',
    meta: {
      title: '地图组件',
      sort: 15
    },
    component: () => import('@/views/component/map/map.vue')
  }
] as RouteRecordRaw[]
